package com.example.summer_pro.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.summer_pro.entity.Ques;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface QuesDao extends BaseMapper<Ques> {
	/**
	 * 创建问卷
	 */
	void createQues(Ques ques);

	/**
	 * 由问卷q_id查找问卷
	 */
	Ques selectQuesByQid(Integer qid);

	/**
	 * 由问卷发布人u_id查找问卷
	 */
	List<Ques> selectQuesByUid(Integer uid);

	void closeTimeoutQues(Date date);
}
